package com.zfast.yugioh.junit.observer;

import java.util.Observable;
import java.util.Observer;

public class ObservableDemo implements Observer {
    /**
     * 监测者监听处理
     * @auther zgn
     * @date  2022/6/15
     *
     * @param obj 检测对象
     * @param arg 检测值
     *
     **/
    public void update(Observable obj, Object arg) {

        System.out.println(obj);
        System.out.println("Update called");
    }
}